#ifndef RENDERTYPES_H
#define RENDERTYPES_H
//--------------------------------------

#include "myEngine_API.h"


//--------------------------------------
namespace pg1
{
struct MYENGINE_API ColorVertex
{
	float x;
	float y;
	float z;

	DWD3D color;
};

extern const int ColorVertexType;
//--------------------------------------

enum Primitive
{
	TriangleList= 0,
	TriangleStrip,
	PointList,
	LineList,
	LineStrip,
	TriangleFan,
	PrimitiveCount
};
//--------------------------------------
// build an unsigned int from color ( see d3dColor_XRGB)
#define PG1_COLOR_ARGB(a,r,g,b)  ((DWORD)((((a)&0xff)<<24)|(((r)&0xff)<<16)|(((g)&0xff)<<8)|((b)&0xff)))
#define PG1_COLOR_RGB(r,g,b) PG1_COLOR_ARGB(0xff,r,g,b)
#endif
}